package com.zt.ztyh.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.zt.ztyh.entity.ZtyhRecording;
import com.zt.ztyh.vo.common.Result;
import com.zt.ztyh.vo.common.ResultCodeEnum;
import org.apache.poi.ss.formula.functions.T;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @author Java之父卫相阳
 * @date 2024/4/12 11:29
 * OverSion04
 */

@FeignClient(name = "user-function-bankcards", path = "/bankcards")
public interface ZtyhRecordingserviceOpen {
    /**
     * 充值到余额
     * @param balance
     * @param cardnumber
     * @return
     */


    @PutMapping("/account")
    public Result account(@RequestParam("balance")String balance, @RequestParam("cardnumber")String cardnumber);

    /**
     * 提现到银行卡:  金额     判断账号余额
     * @param balance
     * @return
     */
    @PutMapping("/chong")
    public Result chong(@RequestParam("balance")String balance,@RequestParam("cardnumber")String cardnumber);

    @GetMapping("/listRecording")
    List<ZtyhRecording> getUserListTime(@RequestParam("userId") Long userId,
                                        @RequestParam("startTime") Date startTime,
                                        @RequestParam("endTime") Date endTime,
                                        @RequestParam("openType") int openType
    );
}
